/*
 * CurrencyTableCellRenderer.java
 *
 */

package jerbo.util;

/**
 *
 * @author Luigi Paioro
 */
public class VATTableCellRenderer extends javax.swing.table.DefaultTableCellRenderer {
    
    java.util.ResourceBundle appBundle = java.util.ResourceBundle.getBundle("jerbo/resources/JerboApp"); // NOI18N

    public VATTableCellRenderer() {
        super();
        setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    }

    @Override
    public void setValue(Object value) {
      if ((value != null) && (value instanceof Number)) {
        value = String.valueOf(value) + "%";
      }
      super.setValue(value);
    } 
    
}
